package de.fh.dortmund.pk1.aufgabe1.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;

public class FastGewonnenGUI extends JDialog
{
	JLabel textL;
	JButton okB;
	
	public FastGewonnenGUI() {
		setLayout(null);
		textL = new JLabel("Der Verdacht war richtig.");
		okB = new JButton("OK");
		
		okB.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent ae) {
				setVisible(false);
				dispose();
			}
		});
		
		setBounds(30, 30, 200, 100);
		textL.setBounds(1, 1, 30, 150);
		okB.setBounds(40, 50, 70, 70);
		add(textL);
		add(okB);
		setVisible(true);
	}
	
}
